package com.Threecharacters.inherit_.ExtendsCase;

public class Graduate {
    public String name;
    public int age;
    private double grade;

    public void setAge(int age) {
        this.age = age;
    }

    public void setGrade(double grade) {
        this.grade = grade;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void testing() {
        System.out.println("大学生：" + name + "正在考高数" + "取得了" + grade + "分");
    }

    public String Info() {
        return "Name: " + name + "\nAge: " + age + "\nGrade: " + grade;
    }
}
